#ifndef DOWNLOAD_H
#define DOWNLOAD_H

#include <QDialog>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QFile>
#include <QUrl>
namespace Ui {
class Download;
}

class Download : public QDialog
{
    Q_OBJECT
private:
    QNetworkAccessManager networkManager;
    QNetworkReply *reply;
    QFile *downloadFile;
public:
    explicit Download(QWidget *parent = 0);
    ~Download();

public:
    Ui::Download *ui;
private slots:
    void on_finishedA();
    void on_readtReadA();
    void on_downloadProgressA(qint64 bytesRead,qint64 totalBytes);
    void on_pushButton_2_clicked();
    void on_btnDownload_clicked();
};

#endif // DOWNLOAD_H
